package com.hui.entity;

import java.util.List;

/**
 * @Description 菜单实体类
 */
public class Menu {
    private Integer menuId;
    private String menuCode;
    private String menuName;
    private Integer menuOrder;
    private Integer menuLevel;
    private String menuIcon;
    private String parentMenuCode;
    private String menuUrl;
    private Integer menuState;

    List<Menu> childList;//用于保存二级菜单

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(Integer menuOrder) {
        this.menuOrder = menuOrder;
    }

    public Integer getMenuLevel() {
        return menuLevel;
    }

    public void setMenuLevel(Integer menuLevel) {
        this.menuLevel = menuLevel;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getParentMenuCode() {
        return parentMenuCode;
    }

    public void setParentMenuCode(String parentMenuCode) {
        this.parentMenuCode = parentMenuCode;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public Integer getMenuState() {
        return menuState;
    }

    public void setMenuState(Integer menuState) {
        this.menuState = menuState;
    }

    public List<Menu> getChildList() {
        return childList;
    }

    public void setChildList(List<Menu> childList) {
        this.childList = childList;
    }

    public Menu() {
    }

    public Menu(Integer menuId, String menuCode, String menuName, Integer menuOrder, Integer menuLevel, String menuIcon, String parentMenuCode, String menuUrl, Integer menuState) {
        this.menuId = menuId;
        this.menuCode = menuCode;
        this.menuName = menuName;
        this.menuOrder = menuOrder;
        this.menuLevel = menuLevel;
        this.menuIcon = menuIcon;
        this.parentMenuCode = parentMenuCode;
        this.menuUrl = menuUrl;
        this.menuState = menuState;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuId=" + menuId +
                ", menuCode='" + menuCode + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuOrder=" + menuOrder +
                ", menuLevel=" + menuLevel +
                ", menuIcon='" + menuIcon + '\'' +
                ", parentMenuCode='" + parentMenuCode + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", menuState=" + menuState +
                '}';
    }
}
